package com.test;

import java.util.concurrent.TimeUnit;

/**
 * Created by 41579 on 2017/4/18.
 */
public class WhileTrueRunnable implements Runnable{
    @Override
    public void run() {
        while(true){
            try {
                TimeUnit.SECONDS.sleep(2);
            } catch (InterruptedException e) {
                e.printStackTrace();
                break;
            }
            System.out.println("while true.....");
        }
    }
}
